<!-- basic scripts -->
<#--<script src="${ctx}/static/plugin/layer/layui/layui.js"></script>-->
<link rel="stylesheet" href="${ctx}/static/plugin/layer/layui/layui.css" />
<link rel="stylesheet" href="${ctx}/static/css/commons.css" />
<script type="text/javascript">
    window.jQuery || document.write("<script src='${ctx}/static/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>

<script type="text/javascript">
    if("ontouchend" in document) document.write("<script src='${ctx}/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script src="${ctx}/static/js/bootstrap.min.js"></script>
<script src="${ctx}/static/dlshouwen.grid.v1.2.1/dlshouwen.grid.js"></script>
<script src="${ctx}/static/dlshouwen.grid.v1.2.1/i18n/zh-cn.js"></script>

<#--<script src="${ctx}/static/dlshouwen.grid.v1.2.1/dependents/datePicker/WdatePicker.js" defer="defer"></script>-->
<script src="${ctx}/static/js/typeahead-bs2.min.js"></script>
<script src="${ctx}/static/echarts-2.2.7/echarts.min.js"></script>

<!-- page specific plugin scripts -->
<script src="${ctx}/static/js/bootstrap-table/bootstrap-table.min.js"></script>
<!-- ace scripts -->

<script src="${ctx}/static/js/ace-elements.min.js"></script>
<script src="${ctx}/static/js/ace.min.js"></script>
<script src="${ctx}/static/plugin/layer/layer.min.js"></script>
<script src="${ctx}/static/plugin/layer/laydate/laydate.js"></script>
<script src="${ctx}/static/js/jquery.validate.min.js"></script>
<script src="${ctx}/static/js/messages_zh.min.js"></script>


<script>
    Date.prototype.Format = function (fmt) { //author: meizz
        var o = {
            "M+": this.getMonth() + 1, //月份
            "d+": this.getDate(), //日
            "h+": this.getHours(), //小时
            "m+": this.getMinutes(), //分
            "s+": this.getSeconds(), //秒
            "q+": Math.floor((this.getMonth() + 3) / 3), //季度
            "S": this.getMilliseconds() //毫秒
        };
        if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
        for (var k in o)
            if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
        return fmt;
    }
</script>